package com.freejava.testmongodb.dao;

import com.freejava.testmongodb.entity.MyLoginLog;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface MyLoginLogDao extends MongoRepository<MyLoginLog, Integer> {
    List<MyLoginLog> findByIpEquals(String ip);

    List<MyLoginLog> findByUsernameContains(String username);

    List<MyLoginLog> findByUserId(String userId);
}
